#!/bin/bash

main(){
# docker pull gogost/gost;

docker rm gost --force||echo 'no container......'
docker run -dit \
--net host \
--name gost \
--hostname gost \
--restart unless-stopped \
registry.cn-hangzhou.aliyuncs.com/siruoren/gost:latest -L socks5://:22007;

docker images|grep '<none>'|awk '{print$3}'|xargs docker rmi;

}

main &